from openai import OpenAI
import os

client = OpenAI(api_key="sk-d627b203e53749d29fa442a66b5411d6",base_url="https://dashscope.aliyuncs.com/compatible-mode/v1")
response = client.chat.completions.create(model="qwen-vl-max-latest",
                                          messages=[{
                                              "role":"user",
                                              "content":[{
                                                  "type":"video",
                                                  "video":[
                                                    "https://img.alicdn.com/imgextra/i3/O1CN01K3SgGo1eqmlUgeE9b_!!6000000003923-0-tps-3840-2160.jpg",
                                                    "https://img.alicdn.com/imgextra/i4/O1CN01BjZvwg1Y23CF5qIRB_!!6000000003000-0-tps-3840-2160.jpg",
                                                    "https://img.alicdn.com/imgextra/i4/O1CN01Ib0clU27vTgBdbVLQ_!!6000000007859-0-tps-3840-2160.jpg",
                                                    "https://img.alicdn.com/imgextra/i1/O1CN01aygPLW1s3EXCdSN4X_!!6000000005710-0-tps-3840-2160.jpg"]
                                              },
                                                  {
                                                      "type":"text",
                                                      "text":"描述这个视频的具体过程"
                                                  }]
                                          }])
print(response.choices[0].message.content)